﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wedn.Net.Utility
{
    public class MemcachedHelper
    {
        ///// <summary>
        ///// 缓存有效间隔时间 (以分钟为单位)
        ///// </summary>
        //int TimeOut { set; get; }

        ///// <summary>
        ///// 添加指定key的对象
        ///// </summary>
        ///// <param name="key"></param>
        ///// <param name="obj"></param>
        //void Add(string key, object obj);

        ///// <summary>
        ///// 添加指定key的对象
        ///// </summary>
        ///// <typeparam name="T"></typeparam>
        ///// <param name="key"></param>
        ///// <param name="obj"></param>
        //void Add<T>(string key, T obj);

        ///// <summary>
        ///// 移除指定key的对象
        ///// </summary>
        ///// <param name="key"></param>
        //bool Remove(string key);

        ///// <summary>
        ///// 修改指定key的对象
        ///// </summary>
        ///// <param name="key"></param>
        ///// <returns></returns>
        //bool Modify(string key, object destObj);

        ///// <summary>
        ///// 清空缓存
        ///// </summary>
        ///// <returns></returns>
        //bool Release();

        ///// <summary>
        ///// 返回指定key的对象
        ///// </summary>
        ///// <param name="key"></param>
        ///// <returns></returns>
        //object Get(string key);

        ///// <summary>
        ///// 返回指定key的对象
        ///// </summary>
        ///// <typeparam name="T"></typeparam>
        ///// <param name="key"></param>
        ///// <returns></returns>
        //T Get<T>(string key);

        ///// <summary>
        ///// 是否存在
        ///// </summary>
        ///// <param name="key"></param>
        ///// <returns></returns>
        //bool isExists(string key);
    }
}
